//
// Created by liushuai on 18-10-29.
//

#include "Line.h"
#include <iostream>
using namespace std;
Line::Line(int x1,int y1,int x2,int y2):start(x1,y1),end(x2,y2){
   cout<<"Construct:"<<x1<<" , "<<y1<<"\n";
    cout<<"Construct:"<<x2<<" , "<<y2<<"\n";
}
Line::~Line() {
    cout<<"Destroy Line"<<"\n";
}
void Line::setA(int x, int y) {
    start.setX(x);
    start.setY(y);
}
void Line::setB(int x, int y) {
    end.setX(x);
    end.setY(y);
}
void Line::Show() {
    cout<<"Start Point: "<<start.getX()<<" : "<<start.getY()<<"\n";
    cout<<"End Point: "<<end.getX()<<" : "<<end.getY()<<"\n";

}